package pers.wangyuhang.demo;

/**
 * Created with IntelliJ IDEA.
 * Desciption:
 * User: 15716
 * Date: 2021-12-23
 * Time: 12:18
 */
public class Student extends Person {
    String major;//代表专业
    String school;
    //school = "hhe";

    public Student() {

    }

    public Student(String major) {
        this.major = major;
    }

    public void study() {
        System.out.println("学习，专业是:" + major);
    }

    public void eat() {
        System.out.println("吃吃");

    }



//    public void setAge() {
//        age = 1;
//        name = "kkk";
//    }
}
